<!DOCTYPE html>
<html>
	<head>
		<!--#include("include/common.head.html") {}  -->
		<link rel="stylesheet" href="${ctxPath}${tpl}/css/master.css?v=${jsVer}" />
		<link rel="stylesheet" href="${ctxPath}${tpl}/css/gloable.css?v=${jsVer}" />
		<link rel="stylesheet" href="${ctxPath}${tpl}/css/nprogress.css?v=${jsVer}" />
		<link rel="stylesheet" href="${ctxPath}${tpl}/css/blog.css?v=${jsVer}" />
	</head>
	<body>
	<!--#
		var file = core.config("背景图");
		var pageBackground = null;
		if (file != null) {
			pageBackground = core.file(file.imageId)[0];
			style = 'background-image:url(/core/file/inline/' + pageBackground.id + '/' + pageBackground.name +')';
		}
	 -->
	<div class="header" style="${style!}">
	</div>
	<header class="gird-header">
		<div class="header-fixed">
			<div class="header-inner">
				<a href="${ctxPath}/" class="header-logo layui-hide" id="logo">
					<!--#
                            var siteNameTupian = null;
                            var siteNameTupianFile = null;
                            if (parameter.lang == null || parameter.lang == 'zh_CN'|| parameter.lang == '') {
                                siteNameTupian = core.config("网站名称图片-中文");
                            } else if (parameter.lang == 'en_US') {
                                siteNameTupian = core.config("网站名称图片-英文");
                            } else if (parameter.lang == 'it_IT') {
                                siteNameTupian = core.config("网站名称图片-意大利文");
                            }
                            if (siteNameTupian != null) siteNameTupianFile = core.file(siteNameTupian.imageId)[0];
                            if (siteNameTupianFile != null) {
                        -->
					<img src="/core/file/inline/${siteNameTupianFile.id}" style="max-width:245px" />
					<!--# } -->
				</a>
				<nav class="nav" id="nav">
					<ul>
						<li class="nav-li"><a class="nav-a" style="font-size:25px" href="${ctxPath}/">${util.getLocalValue("site.home")}</a></li>
						<!--#
						var navTopCatalogList = cms.getCatalogByDictTypeAndValueAndParentCatalogId("catalog_position", "nav_top","");
						for(catalog in navTopCatalogList) {
							var subCatalogList = cms.getCatalogByDictTypeAndValueAndParentCatalogId("","",catalog.id);
						-->
						<li class="nav-li <!--# if (curCatalog.id!0 == catalog.id || article.catalogId!0 == catalog.id ) {  -->current<!--# } -->">
							<a class="nav-a" href="${catalog.accessUrl+'?id='+catalog.id}&lang=${parameter.lang}">${util.getCatalogName(catalog) }</a>
							<!--# if (subCatalogList != null && subCatalogList.~size > 0) { -->
							<div class="nav-a-sub" <!--# if (catalogLP.index == 1) { -->style="left:-70px" <!--# } --> >
								<!--# for(subCatalog in subCatalogList) {  -->
								<a class="" a="${subCatalogLP.index}" href="${(subCatalog.code! == null || subCatalog.code! == '') ? (subCatalog.accessUrl!+'?id='+subCatalog.id!) : subCatalog.code!}&lang=${parameter.lang}">${util.getCatalogName(subCatalog)! }</a>
								<!--# } -->
							</div>
							<!--# } -->
						</li>
						<!--#} -->
						<li class="nav-li align-center">
							<a class="lang-a" style="<!--# if (parameter.lang == 'zh_CN' || parameter.lang == null) {-->color:#6bc30d<!--# } -->" href="?${util.parameters()}&lang=zh_CN">${util.getLocalValue("site.zhongwen")}</a>
							<a class="lang-a" style="<!--# if (parameter.lang == 'en_US' || parameter.lang == null) {-->color:#6bc30d<!--# } -->" href="?${util.parameters()}&lang=en_US">${util.getLocalValue("site.yingwen")}</a>
							<a class="lang-a" style="<!--# if (parameter.lang == 'it_IT' || parameter.lang == null) {-->color:#6bc30d<!--# } -->" href="?${util.parameters()}&lang=it_IT">${util.getLocalValue("site.yidaliwen")}</a>
						</li>
					</ul>
				</nav>
				<a class="phone-menu">
					<i></i>
					<i></i>
					<i></i>
				</a>
			</div>
		</div>
	</header>
	${layoutContent}
	<footer class="grid-footer">
		<div class="footer-fixed">
			<div class="copyright">
				<div class="info">
					<p class="mt05">
						Copyright &copy; 2019-2020 ${util.getConfigContent(core.config("网站名称"))!} ${core.config("备案号").content!}
					</p>
				</div>
			</div>
		</div>
	</footer>
	<script src="${ctxPath}${tpl}/js/global.js?v=${jsVer}"></script>
	</body>
</html>
